package com.KKd.service;

import com.KKd.pojo.Blog;
import com.KKd.pojo.Catalogue;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CatalogueService {
    //创建分类
    int insertCatalogue(Catalogue catalogue);
    //删除分类
    int deleteCatalogue(Integer catalogueId);
    //获取分类名
    String getCataNameByCataId(Integer catalogueId);
    //加入分类
    int insertCatalogueById(Catalogue catalogue);
    //取消加入分类
    int deleteCatalogueById(Integer blogId);
    //展示分类
    List<Catalogue> showCatalogue();
    //展示对应分类下的博客标题
    List<String> showBlogTitleByCata(Integer catalogueId);

    //返回当前最大的catalogueId
    Integer getBiggestCataId();
}
